package com.e2edour.service.annotation

import javax.xml.bind.annotation.adapters.XmlAdapter

/**
  * <p>
  *
  * @author King 
  * @since 2017/1/17
  */
class CDataAdapter extends XmlAdapter[String, String] {

  override def marshal(msg: String): String = {
    "<![CDATA[" + msg + "]]>"
  }

  override def unmarshal(msg: String): String = {
    msg
  }
}
